import axios from '~/axios'

// 添加合同模板字段选项
export function addContractTemplateFieldOptionApi(data) {
    return axios.post('/basic/lindi/contractTemplateFieldOption/addContractTemplateFieldOption', data)
}

// 删除合同模板字段选项
export function deleteContractTemplateFieldOptionByContractTemplateFieldOptionIdApi(contractTemplateFieldOptionId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/contractTemplateFieldOption/deleteContractTemplateFieldOptionByContractTemplateFieldOptionId',
        params: {
            contractTemplateFieldOptionId: contractTemplateFieldOptionId
        }
    })
}

// 修改合同模板字段选项
export function updateContractTemplateFieldOptionByContractTemplateFieldOptionIdApi(data) {
    return axios.put('/basic/lindi/contractTemplateFieldOption/updateContractTemplateFieldOptionByContractTemplateFieldOptionId', data)
}

// 分页查询合同模板字段选项列表
export function getPageContractTemplateFieldOptionListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/contractTemplateFieldOption/getPageContractTemplateFieldOptionList',
        params: params
    })
}

// 根据ID查询合同模板字段选项详情
export function getContractTemplateFieldOptionByContractTemplateFieldOptionIdApi(contractTemplateFieldOptionId) {
    return axios.get(`/basic/lindi/contractTemplateFieldOption/getContractTemplateFieldOptionByContractTemplateFieldOptionId/${contractTemplateFieldOptionId}`)
}